# $Id: PKGBUILD 65743 2012-02-22 12:12:49Z spupykin $

pkgname=perl-class-factory-util
_realname=Class-Factory-Util
pkgver=1.7
pkgrel=4
pkgdesc="Provide utility methods for factory classes"
arch=(i686 x86_64)
license=('GPL' 'Artistic')
url="http://search.cpan.org/~drolsky/Class-Factory-Util"
options=(!emptydirs)
depends=('perl')
provides=('class-factory-util=1.7' 'Class::Factory::Util=1.7' 'perl-class-factory-util=1.7')
source=(http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Class-Factory-Util-1.7.tar.gz)
md5sums=('aebd79da361b676a7ecd3245fc3d1b3f')

build() {
  cd ${srcdir}/${_realname}-${pkgver}
  # install module in vendor directories.
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd ${srcdir}/${_realname}-${pkgver}
  make install DESTDIR=${pkgdir}

  # remove perllocal.pod and .packlist
  find ${pkgdir} -name perllocal.pod -delete
  find ${pkgdir} -name .packlist -delete
}
